
<%@ taglib prefix="c" uri="/WEB-INF/tlds/hdiv-c.tld"%>
<%@ taglib prefix="form" uri="/WEB-INF/tlds/hdiv-spring-form-3_0_4.tld"%>
<%@ taglib prefix="spring" uri="/WEB-INF/tlds/hdiv-spring.tld" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<style type="text/css">
.ui-accordion .ui-accordion-content{ overflow:visible !important; }
.jquery-dialog{
  overflow-y: auto;
  height: 300px;
} 
</style>

<c:url value="mostrarHWF3018.html" var="consultaBilletesFalsos"/>
       
 <script type="text/javascript">
    
   $(document).ready(function(){ 
        $("#fechaDesde").datepicker();
        $("#fechaHasta").datepicker();    
    }); //Fin de document.ready
    
    function show_loading(){  
      var loadingAnim = document.getElementById('loading_mostrar');  
      loadingAnim.innerHTML = '<img src="imagenes/logoProcesandoDown.gif" width=' + xx_d + 'height=' + yy_d + 'alt="Procesando" />';  
      loadingAnim.style.display = 'block';      
    }   
    
    function cursor_wait() {
      document.body.style.cursor = 'wait';
    }  
   
    function mostrarBilletesFalsos(){
         if(validaRangoFechas(document.forms[0].fechaDesde.value, document.forms[0].fechaHasta.value)==false){
               $("#fechaHasta").focus();
               return false
         }  
        show_loading();
        setTimeout('show_loading();', 1000);
        cursor_wait() ;
        //moveForward('mostrar');  
        return true;
      }
</script>
    

<style type="text/css">  
<!-- 
#loading_mostrar {display:none;}  
-->
.ui-icon
{
display: inline-block !important;
}
.ui-corner-all {
    border-radius: 4px 4px 4px 4px;
}
span.ui-icon {float: left; margin: 0 4px;}
span.text {float: left; width: 60px;}


.ui-pointer{
    cursor: pointer;
    float: left;
    list-style: none outside none;
    margin: 2px;
    padding: 4px 0;
    position: relative;
}
</style> 


<form:form modelAttribute="form" action="${consultaBilletesFalsos}">
<form:hidden path="accion"/>
<form:hidden path ="control"/>

<!--Favoritos:-->
<input type="hidden" id="codOpci" value="${codOpci}"/>
<input type="hidden" id="desOpci" value="${desOpci}"/>

<table id="fullheighttable" width="775" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="left" valign="top" class="fondo_contenido padtop16left21">
     <!--******Parámetros de Consulta******-->
      <table border="0" cellspacing="0" cellpadding="0" class="verdana11bazul">
        <tr><!--Titulo-->
          <td height="22" align="left" valign="top" class="verdana11bazul">
             <ul class="navlist2"><li>RESULTADO REVISI&Oacute;N DE BILLETES FALSOS</li></ul>
          </td>
          <td align="left" width="80" colspan="3">
             <a href="#" id="opener_agregarFavoritos"> <img src="images/agregar_favoritos.png" width="25" height="23" border="0" title='Agregar Favoritos'/> </a>
          </td>
        </tr>
        <tr><!--cuerpo-->
          <td align="left" valign="top" class="borde_totalblanco">
             <table border="0" cellspacing="0" cellpadding="0" width="700">  
                 <tr><!--primera fila de la tabla--><!--CORPORACION-->
                   <c:if test="${sessionScope.tipClie eq '0'}">
                      <td  height="30" align="left" valign="top" class="verdana10bazul">Corporaci&oacute;n  </td>
                      <td  height="30" align="left" valign="top" class="verdana10negro" colspan="3"> ${desCorp}</td>
                   </c:if>
                 </tr>
                 <tr><!--segunda fila de la tabla--><!--SELECCIONA CLIENTE / UM-->
                    <td  height="30" align="left" valign="middle" class="verdana10bazul">Cliente</td>
                    <c:choose>
                    <c:when test="${sessionScope.tipClie eq '0'}">
                        <td height="30" align="left" valign="middle" class="verdana10negro">
                          <table border="0">
                            <tr>
                                <td>
                                    <div class="fondo_txtbox90">
                                      <form:select cssStyle="height: 23px; width: 90px; font-family: Arial; font-size: 8pt" path="cliente">
                                                   <form:option value="0">TODOS</form:option>
                                                   <form:option value="1">ALGUNOS</form:option>
                                      </form:select>
                                    </div>
                                </td>
                                <td align="left" valign="middle"><a href="#" id="opener_cliente"><img src="images/search.png" width="17px" height="17px" title="Buscar"/> </a><span id="message_cuenta" style="color:red;"><c:out value="${message_cliente}"/></span></td>
                            </tr>
                            <tr><td><span id="message_cliente" style="color:red;"><c:out value="${message_cliente}"/></span></td></tr>
                          </table>
                        </td>
                    </c:when>
                    <c:otherwise>
                        <td  height="30" align="left" valign="top" class="verdana10negro"> ${desRazoSoci}</td>
                    </c:otherwise>
                    </c:choose>
                    <td height="30" align="left" valign="middle" class="verdana10bazul">U.M</td>
                    <td height="30" align="left" valign="middle" class="verdana10negro" colspan="2">
                        <table border="0">
                            <tr>
                              <td>
                              <div class="fondo_txtbox90">
                                  <form:select cssStyle="height: 23px; width: 90px; font-family: Arial; font-size: 8pt" path="unidMone">
                                       <form:option value="0">TODOS</form:option>
                                       <c:if test="${not empty listaUnidMone}">
                                         <form:options items="${listaUnidMone}"
                                                       itemValue="codigo"
                                                       itemLabel="descripcion"/>
                                       </c:if>
                                  </form:select>
                              </div>
                              </td>
                              <td align="left" valign="middle"><a href="#" id="opener_punto"><img src="images/search.png" width="17px" height="17px" title="Buscar"/> </a> </td>
                            </tr>
                            <tr><td><span id="message_unidMone" style="color:red;"><c:out value="${message_unidMone}"/></span></td></tr>
                        </table>
                    </td>
                 </tr>
                 <tr><!--tercera fila de la tabla--><!--SELECCIONA FECHA / RESULTADO-->                   
                   <td height="30" align="left" valign="bottom" class="verdana10bazul">Fecha</td>
                   <td height="34" align="left" valign="bottom" class="verdana10negro">
                     <table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="left" valign="bottom" class="padright10"><div class="fondo_txtbox90">&nbsp;<form:input maxlength="10" size="12" path="fechaDesde" readonly="false"/></div></td>
                          <td class="padright10">a</td>
                          <td align="left" valign="bottom" class="padright10"><div class="fondo_txtbox90">&nbsp;<form:input maxlength="10" size="12" path="fechaHasta"/></div></td>
                        </tr>
                     </table>
                   </td>
                   <td height="30" align="left" valign="bottom" class="verdana10bazul">Resultado</td>
                   <td height="30" align="left" valign="bottom" class="verdana10negro">
                      <div class="fondo_txtbox128">
                          <form:select cssStyle="height: 23px; width: 128px; font-family: Arial; font-size: 8pt" path="resultado">
                                       <form:option value="0">TODOS</form:option>
                                       <c:if test="${not empty listaResultado}">
                                       <form:options items="${listaResultado}"
                                                     itemValue="codigo"
                                                     itemLabel="descripcion"/>
                                       </c:if>
                          </form:select>
                      </div>
                   </td>
                 </tr>
                 
                 
                 <tr><!--cuarta fila de la tabla--><!--SELECCIONA TIPO DE DOCUMENTO / NRO DE DOCUMENTO-->
                   <td height="30" align="left" valign="bottom" class="verdana10bazul">Tipo de Documento</td>
                   <td height="30" align="left" valign="bottom" class="verdana10negro">
                      <div class="fondo_txtbox128">
                          <form:select cssStyle="height: 23px; width: 128px; font-family: Arial; font-size: 8pt" path="tipDocu">
                                       <form:option value="0">TODOS</form:option>
                                       <c:if test="${not empty listaResultado}">
                                       <form:options items="${listaResultado}"
                                                     itemValue="codigo"
                                                     itemLabel="descripcion"/>
                                       </c:if>
                          </form:select>
                      </div>
                   </td>
                   <td height="30" align="left" valign="bottom" class="verdana10bazul">Nro de Documento</td>
                   <td><div class="fondo_txtbox128" ><input name="nroDocu" type="text" id="nroDocumento" size ="20" maxlength="7" /></div></td>
                 </tr>
             </table>
          </td>
        </tr>
        <tr><!--pie-->
          <td>
              <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="3"></td>
                  <td height="51" align="rigth" valign="bottom">
                     <input type="button" value="Mostrar" name="mostrar" class="boton" onclick="javascript:mostrarBilletesFalsos()"/>              
                  </td>
                </tr>
                 <tr>
                  <td colspan="4" align="center">    
                     <div id="loading_mostrar"><img id="logoDown" src="imagenes/logoProcesandoDown.gif" alt="Procesando" /></div>  
                  </td>
                </tr>  
              </table>
          </td>
        </tr>    
      </table>
      
      <!--******Resultado de Consulta******-->      
      
	  </td>
  </tr>
</table>

</form:form>
